from channels.routing import ProtocolTypeRouter, URLRouter
from django.urls import path
import consumers  #

application = ProtocolTypeRouter({
    'websocket': URLRouter([
        path('ws/charging/<str:charge_point_id>/', consumers.ChargePointConsumer.as_asgi()),  # 替换为你的路径和consumer
    ]),
})
